<template>
    <div class="container">
        <!-- 左边栏 -->
        <div class="left">
            <div class="item" v-for="(item, index) in diagnosisList" :key="index">
                <div class="title">
                    <p>{{ item.name }}</p>
                </div>
                <div class="detail">
                    <span>{{ item.detail }}</span>
                </div>
            </div>
        </div>
        <!-- 右边栏 -->
        <div class="right">
            <div class="top">
                <div class="data">
                    <div class="dataLeft">
                        <p>诊断设备：</p>
                        <el-select v-model="value" placeholder="请选择">
                            <el-option
                                v-for="item in options"
                                :key="item.value"
                                :label="item.label"
                                :value="item.value"
                            >
                            </el-option>
                        </el-select>
                    </div>
                </div>
                <div class="chart">
                    <!-- 折线图 -->
                    <div ref="chart" style="width: 90%; height: 100%;"></div>
                    <!-- 饼图 -->
                    <div ref="pieChart" id="pieCharts" style="width: 30%; height: 100%"></div>
                </div>
            </div>
            <div class="middle">
                <div class="middleLeft">诊断分析</div>
                <div class="middleRight">
                    <span>今日运行过程中，冷却塔1#湿球温度与冷却水回水</span>
                    <span>温差＞5℃</span>
                    <span
                        >的运行时间达：600分钟，占总运行时长的66%，当前冷却塔散热性能较差，需要注意增加频率，或加开设备优化运行状态</span
                    >
                </div>
            </div>
            <div class="bottom">
                <el-table :data="tableData" style="width: 100%">
                    <el-table-column
                        v-for="(item, index) in tableInfo"
                        :key="index"
                        :label="item.label"
                        :prop="item.value"
                    ></el-table-column>
                </el-table>
            </div>
        </div>
    </div>
</template>

<script>
    import * as echarts from 'echarts'
    import 'echarts-gl'
    import $ from 'jquery'
    export default {
        data() {
            return {
                chart: null,
                pieChart: null,
                diagnosisList: [
                    {
                        id: 1,
                        name: '冷却塔散热效果诊断',
                        detail: '说明：冷却塔湿球温度与冷却水回水温度的温差在一定程度上能够反映冷却塔散热效果，并指导设备调频优化。',
                    },
                    {
                        id: 2,
                        name: '冷机负载情况诊断',
                        detail: '说明：冷机负载值能够反映冷机运行效率情况，同时预警潜在的主机的喘振现象的发生',
                    },
                    {
                        id: 3,
                        name: '蒸发器换热效果诊断',
                        detail: '说明：这是一段关于蒸发器换热效果诊断的说明内容',
                    },
                    {
                        id: 4,
                        name: '冷凝器换热效果诊断',
                        detail: '说明：冷却塔湿球温度与冷却水回水温度的温差在一定程度上能够反映冷却塔散热效果，并指导设备调频优化。',
                    },
                ],
                options: [
                    {
                        value: 'one',
                        label: '冷却塔1#',
                    },
                    {
                        value: 'two',
                        label: '冷却塔2#',
                    },
                    {
                        value: 'three',
                        label: '冷却塔3#',
                    },
                    {
                        value: 'four',
                        label: '冷却塔4#',
                    },
                ],
                value: 'one',
                tableInfo: [
                    {
                        label: '时间',
                        value: 'time',
                    },
                    {
                        label: '温球温度',
                        value: 'warmBulbTtemperature',
                    },
                    {
                        label: '冷却水回水温度',
                        value: 'coolingWaterReturnTemperature',
                    },
                    {
                        label: '温差',
                        value: 'temperatureDifference',
                    },
                ],
                tableData: [
                    {
                        time: '2024-01-01 00:00:00',
                        warmBulbTtemperature: '5',
                        coolingWaterReturnTemperature: '12',
                        temperatureDifference: '7',
                    },
                    {
                        time: '2024-01-01 00:00:00',
                        warmBulbTtemperature: '5',
                        coolingWaterReturnTemperature: '13',
                        temperatureDifference: '8',
                    },
                    {
                        time: '2024-01-01 00:00:00',
                        warmBulbTtemperature: '8',
                        coolingWaterReturnTemperature: '15',
                        temperatureDifference: '6',
                    },
                    {
                        time: '2024-01-01 00:00:00',
                        warmBulbTtemperature: '2',
                        coolingWaterReturnTemperature: '11',
                        temperatureDifference: '5',
                    },
                    {
                        time: '2024-01-01 00:00:00',
                        warmBulbTtemperature: '1',
                        coolingWaterReturnTemperature: '10',
                        temperatureDifference: '4',
                    },
                ],
                time: [
                    '2024-01-01',
                    '2024-02-01',
                    '2024-03-01',
                    '2024-04-01',
                    '2024-05-01',
                    '2024-06-01',
                    '2024-07-01',
                    '2024-08-01',
                    '2024-09-01',
                    '2024-10-01',
                    '2024-11-01',
                    '2024-12-01',
                ],
                unit: ['0', '1000', '2000', '3000', '4000', '5000'],
                res1: [
                    '1100',
                    '2900',
                    '2000',
                    '2000',
                    '4200',
                    '1200',
                    '2900',
                    '3900',
                    '3000',
                    '1000',
                    '4200',
                    '2000',
                    '4100',
                    '2000',
                ],
                res2: [
                    '25kw-h',
                    '23.3kw-h',
                    '54.6kw-h',
                    '65.8kw-h',
                    '23.8kw-h',
                    '55kw-h',
                    '34kw-h',
                    '61.5kw-h',
                    '34kw-h',
                    '31kw-h',
                    '56kw-h',
                    '66.3kw-h',
                    '22.7kw-h',
                    '34kw-h',
                ],
                pieData: [
                    {
                        value: 10,
                        name:'>3000',
                        itemStyle: {
                            color: '#dcc45d',
                        },
                    },
                    {
                        value: 4400,
                        name:'2000-3000',
                        itemStyle: {
                            color: '#83ccff',
                        },
                    },
                    {
                        value: 15600,
                        name:'<3000',
                        itemStyle: {
                            color: '#53e1c3',
                        },
                    },
                ],
            }
        },
        mounted() {
            this.initChart()
            this.initPieChart()
        },
        methods: {
            //////////////////  折线图  ////////////////
            initChart() {
                const chartDom = this.$refs.chart
                this.chart = echarts.init(chartDom)

                // 请求数据并设置 ECharts 配置
                const ROOT_PATH = 'https://echarts.apache.org/examples'
                $.get(ROOT_PATH + '/data/asset/data/aqi-beijing.json', (data) => {
                    const option = {
                        title: {
                            text: '单位(°C)',
                            top: '5%',
                            textStyle: {
                                color: '#3d6194',
                            },
                        },
                        tooltip: {
                            trigger: 'axis',
                            backgroundColor: '#01235b',
                            borderColor: '#0965bf', // 设置边框颜色
                            // borderWidth: 1, // 设置边框宽度
                            textStyle: {
                                color: '#f9f9fb',
                                fontSize: 14,
                            },
                        },
                        grid: {
                            left: '5%',
                            right: '15%',
                            bottom: '10%',
                        },
                        xAxis: {
                            // data: data.map((item) => item[0]),
                            data: this.time,
                            axisLabel: {
                                textStyle: {
                                    color: '#81ade9',
                                },
                            },
                            axisLine: {
                                lineStyle: {
                                    //改变xy轴线条的颜色
                                    color: '#113369',
                                    width: 2, //这里是为了突出显示加上的
                                },
                            },
                        },
                        yAxis: {
                            type: 'value',
                            axisLine: {
                                show: true,
                                lineStyle: {
                                    //改变xy轴线条的颜色
                                    color: '#113369',
                                    // width: 1, //这里是为了突出显示加上的
                                },
                            },
                            axisLabel: {
                                textStyle: {
                                    color: '#81ade9',
                                },
                                formatter: function (value) {
                                    return value
                                },
                            },
                            splitLine: {
                                show: true,
                                lineStyle: {
                                    color: '#4b6e9d',
                                    type: 'dashed',
                                },
                            },
                        },
                        dataZoom: [],
                        visualMap: [
                            {
                                show: false,
                                type: 'continuous',
                                seriesIndex: 0,
                                min: 0,
                                max: 5000,
                                inRange: {
                                    color: ['#af9835', '#d64124'],
                                },
                            },
                        ],
                        series: [
                            {
                                name: '时间：',
                                type: 'line',
                                showSymbol: false,
                                data: this.res1,
                                // areaStyle: {
                                //     opacity: 1,
                                //     color: '#6de5ff',
                                // },
                            },
                            {
                                name: '能耗：',
                                type: 'line',
                                showSymbol: false,
                                data: this.res2,
                                xAxisIndex: 0,
                                yAxisIndex: 0,
                            },
                        ],
                    }
                    // 设置 ECharts 配置项
                    this.chart.setOption(option)
                })
            },
            //////////////////  饼图  ////////////////
            initPieChart() {
                let myChart = echarts.init(document.getElementById('pieCharts'))
                this.option = this.getPie3D(this.pieData, 0.8)
                myChart.setOption(this.option)
                this.bindListen(myChart)
            },

            getPie3D(pieData, internalDiameterRatio) {
                //internalDiameterRatio:透明的空心占比
                let that = this
                let series = []
                let sumValue = 0
                let startValue = 0
                let endValue = 0
                let legendData = []
                let legendBfb = []
                let k = 1 - internalDiameterRatio
                pieData.sort((a, b) => {
                    return b.value - a.value
                })
                // 为每一个饼图数据，生成一个 series-surface 配置
                for (let i = 0; i < pieData.length; i++) {
                    sumValue += pieData[i].value
                    let seriesItem = {
                        name:
                            typeof pieData[i].name === 'undefined' ? `series${i}` : pieData[i].name,
                        type: 'surface',
                        parametric: true,
                        wireframe: {
                            show: false,
                        },
                        pieData: pieData[i],
                        pieStatus: {
                            selected: false,
                            hovered: false,
                            k: k,
                        },
                        center: ['10%', '50%'],
                    }

                    if (typeof pieData[i].itemStyle != 'undefined') {
                        let itemStyle = {}
                        typeof pieData[i].itemStyle.color != 'undefined'
                            ? (itemStyle.color = pieData[i].itemStyle.color)
                            : null
                        typeof pieData[i].itemStyle.opacity != 'undefined'
                            ? (itemStyle.opacity = pieData[i].itemStyle.opacity)
                            : null
                        seriesItem.itemStyle = itemStyle
                    }
                    series.push(seriesItem)
                }

                // 使用上一次遍历时，计算出的数据和 sumValue，调用 getParametricEquation 函数，
                // 向每个 series-surface 传入不同的参数方程 series-surface.parametricEquation，也就是实现每一个扇形。
                legendData = []
                legendBfb = []
                for (let i = 0; i < series.length; i++) {
                    endValue = startValue + series[i].pieData.value
                    series[i].pieData.startRatio = startValue / sumValue
                    series[i].pieData.endRatio = endValue / sumValue
                    series[i].parametricEquation = this.getParametricEquation(
                        series[i].pieData.startRatio,
                        series[i].pieData.endRatio,
                        false,
                        false,
                        k,
                        series[i].pieData.value
                    )
                    startValue = endValue
                    let bfb = that.fomatFloat(series[i].pieData.value / sumValue, 4)
                    legendData.push({
                        name: series[i].name,
                        value: '占比' + bfb,
                    })
                    legendBfb.push({
                        name: series[i].name,
                        value: '占比' + bfb,
                    })
                }
                let boxHeight = this.getHeight3D(series, 26) //通过传参设定3d饼/环的高度，26代表26px
                // 准备待返回的配置项，把准备好的 legendData、series 传入。
                let option = {
                    legend: {
                        data: legendData,
                        orient: 'horizontal',
                        left: 10,
                        top: 10,
                        itemGap: 10,
                        textStyle: {
                            color: '#A1E2FF',
                        },
                        show: true,
                        icon: 'circle',
                        formatter: function (param) {
                            let item = legendBfb.filter((item) => item.name == param)[0]
                            let bfs = that.fomatter(item.value * 100, 2)
                            return `${bfs}`
                        },
                    },
                    labelLine: {
                        show: true,
                        lineStyle: {
                            // color: '#7BC0CB'
                        },
                    },
                    label: {
                        show: true,
                        position: 'outside',
                        rich: {
                            b: {
                                color: '#7BC0CB',
                                fontSize: 12,
                                lineHeight: 20,
                            },
                            c: {
                                fontSize: 16,
                            },
                        },
                    },
                    tooltip: {
                        backgroundColor: '#01235b',
                        borderColor: '#0965bf', // 设置边框颜色
                        // borderWidth: 1, // 设置边框宽度
                        textStyle: {
                            color: '#f9f9fb',
                            fontSize: 14,
                        },
                        formatter: (params) => {
                            if (
                                params.seriesName !== 'mouseoutSeries' &&
                                params.seriesName !== 'pie2d'
                            ) {
                                let value =
                                    option.series[params.seriesIndex].pieData -
                                    option.series[params.seriesIndex].pieData
                                let bfb = (
                                    (option.series[params.seriesIndex].pieData.endRatio -
                                        option.series[params.seriesIndex].pieData.startRatio) *
                                    100
                                ).toFixed(0)
                                return (
                                    `数值${value}<br/>` +
                                    `<span style="display:inline-block;"></span>` +
                                    '占比' +
                                    `${bfb}%`
                                )
                            }
                        },
                    },
                    xAxis3D: {
                        min: -1,
                        max: 1,
                    },
                    yAxis3D: {
                        min: -1,
                        max: 1,
                    },
                    zAxis3D: {
                        min: -1,
                        max: 1,
                    },
                    grid3D: {
                        show: false,
                        boxHeight: boxHeight, //圆环的高度
                        viewControl: {
                            //3d效果可以放大、旋转等，请自己去查看官方配置
                            alpha: 40, //角度
                            distance: 300, //调整视角到主体的距离，类似调整zoom
                            rotateSensitivity: 0, //设置为0无法旋转
                            zoomSensitivity: 0, //设置为0无法缩放
                            panSensitivity: 0, //设置为0无法平移
                            autoRotate: false, //自动旋转
                        },
                    },
                    series: series,
                }
                return option
            },

            //获取3d丙图的最高扇区的高度
            getHeight3D(series, height) {
                series.sort((a, b) => {
                    return b.pieData.value - a.pieData.value
                })
                return (height * 25) / series[0].pieData.value
            },

            // 生成扇形的曲面参数方程，用于 series-surface.parametricEquation
            getParametricEquation(startRatio, endRatio, isSelected, isHovered, k, h) {
                // 计算
                let midRatio = (startRatio + endRatio) / 2
                let startRadian = startRatio * Math.PI * 2
                let endRadian = endRatio * Math.PI * 2
                let midRadian = midRatio * Math.PI * 2
                // 如果只有一个扇形，则不实现选中效果。
                if (startRatio === 0 && endRatio === 1) {
                    isSelected = false
                }
                // 通过扇形内径/外径的值，换算出辅助参数 k（默认值 1/3）
                k = typeof k !== 'undefined' ? k : 1 / 3
                // 计算选中效果分别在 x 轴、y 轴方向上的位移（未选中，则位移均为 0）
                let offsetX = isSelected ? Math.cos(midRadian) * 0.1 : 0
                let offsetY = isSelected ? Math.sin(midRadian) * 0.1 : 0
                // 计算高亮效果的放大比例（未高亮，则比例为 1）
                let hoverRate = isHovered ? 1.05 : 1
                // 返回曲面参数方程
                return {
                    u: {
                        min: -Math.PI,
                        max: Math.PI * 3,
                        step: Math.PI / 32,
                    },
                    v: {
                        min: 0,
                        max: Math.PI * 2,
                        step: Math.PI / 20,
                    },
                    x: function (u, v) {
                        if (u < startRadian) {
                            return (
                                offsetX + Math.cos(startRadian) * (1 + Math.cos(v) * k) * hoverRate
                            )
                        }
                        if (u > endRadian) {
                            return offsetX + Math.cos(endRadian) * (1 + Math.cos(v) * k) * hoverRate
                        }
                        return offsetX + Math.cos(u) * (1 + Math.cos(v) * k) * hoverRate
                    },
                    y: function (u, v) {
                        if (u < startRadian) {
                            return (
                                offsetY + Math.sin(startRadian) * (1 + Math.cos(v) * k) * hoverRate
                            )
                        }
                        if (u > endRadian) {
                            return offsetY + Math.sin(endRadian) * (1 + Math.cos(v) * k) * hoverRate
                        }
                        return offsetY + Math.sin(u) * (1 + Math.cos(v) * k) * hoverRate
                    },
                    z: function (u, v) {
                        if (u < -Math.PI * 0.5) {
                            return Math.sin(u)
                        }
                        if (u > Math.PI * 2.5) {
                            return Math.sin(u) * h * 0.1
                        }
                        return Math.sin(v) > 0 ? 1 * h * 0.1 : -1
                    },
                }
            },

            fomatFloat(num, n) {
                var f = parseFloat(num)
                if (isNaN(f)) {
                    return false
                }
                f = Math.round(num * Math.pow(10, n)) / Math.pow(10, n) // n 幂
                var s = f.toString()
                var rs = s.indexOf('.')
                //判定如果是整数，增加小数点再补0
                if (rs < 0) {
                    rs = s.length
                    s += '.'
                }
                while (s.length <= rs + n) {
                    s += '0'
                }
                return s
            },
            fomatter(item){
              console.log(item + '1111')
            }
            ,
            bindListen(myChart) {
                // 监听鼠标事件，实现饼图选中效果（单选），近似实现高亮（放大）效果。
                let that = this
                let selectedIndex = ''
                let hoveredIndex = ''
                // 监听点击事件，实现选中效果（单选）
                myChart.on('click', function (params) {
                    // 从 option.series 中读取重新渲染扇形所需的参数，将是否选中取反。
                    let isSelected = !that.option.series[params.seriesIndex].pieStatus.selected
                    let isHovered = that.option.series[params.seriesIndex].pieStatus.hovered
                    let k = that.option.series[params.seriesIndex].pieStatus.k
                    let startRatio = that.option.series[params.seriesIndex].pieData.startRatio
                    let endRatio = that.option.series[params.seriesIndex].pieData.endRatio
                    // 如果之前选中过其他扇形，将其取消选中（对 option 更新）
                    if (selectedIndex !== '' && selectedIndex !== params.seriesIndex) {
                        that.option.series[selectedIndex].parametricEquation =
                            that.getParametricEquation(
                                that.option.series[selectedIndex].pieData.startRatio,
                                that.option.series[selectedIndex].pieData.endRatio,
                                false,
                                false,
                                k,
                                that.option.series[selectedIndex].pieData.value
                            )
                        that.option.series[selectedIndex].pieStatus.selected = false
                    }
                    // 对当前点击的扇形，执行选中/取消选中操作（对 option 更新）
                    that.option.series[params.seriesIndex].parametricEquation =
                        that.getParametricEquation(
                            startRatio,
                            endRatio,
                            isSelected,
                            isHovered,
                            k,
                            that.option.series[params.seriesIndex].pieData.value
                        )
                    that.option.series[params.seriesIndex].pieStatus.selected = isSelected
                    // 如果本次是选中操作，记录上次选中的扇形对应的系列号 seriesIndex
                    isSelected ? (selectedIndex = params.seriesIndex) : null
                    // 使用更新后的 option，渲染图表
                    myChart.setOption(that.option)
                })
                // 监听 mouseover，近似实现高亮（放大）效果
                myChart.on('mouseover', function (params) {
                    // 准备重新渲染扇形所需的参数
                    let isSelected
                    let isHovered
                    let startRatio
                    let endRatio
                    let k
                    // 如果触发 mouseover 的扇形当前已高亮，则不做操作
                    if (hoveredIndex === params.seriesIndex) {
                        return
                        // 否则进行高亮及必要的取消高亮操作
                    } else {
                        // 如果当前有高亮的扇形，取消其高亮状态（对 option 更新）
                        if (hoveredIndex !== '') {
                            // 从 option.series 中读取重新渲染扇形所需的参数，将是否高亮设置为 false。
                            isSelected = that.option.series[hoveredIndex].pieStatus.selected
                            isHovered = false
                            startRatio = that.option.series[hoveredIndex].pieData.startRatio
                            endRatio = that.option.series[hoveredIndex].pieData.endRatio
                            k = that.option.series[hoveredIndex].pieStatus.k
                            // 对当前点击的扇形，执行取消高亮操作（对 option 更新）
                            that.option.series[hoveredIndex].parametricEquation =
                                that.getParametricEquation(
                                    startRatio,
                                    endRatio,
                                    isSelected,
                                    isHovered,
                                    k,
                                    that.option.series[hoveredIndex].pieData.value
                                )
                            that.option.series[hoveredIndex].pieStatus.hovered = isHovered
                            // 将此前记录的上次选中的扇形对应的系列号 seriesIndex 清空
                            hoveredIndex = ''
                        }
                        // 如果触发 mouseover 的扇形不是透明圆环，将其高亮（对 option 更新）
                        if (
                            params.seriesName !== 'mouseoutSeries' &&
                            params.seriesName !== 'pie2d'
                        ) {
                            // 从 option.series 中读取重新渲染扇形所需的参数，将是否高亮设置为 true。
                            isSelected = that.option.series[params.seriesIndex].pieStatus.selected
                            isHovered = true
                            startRatio = that.option.series[params.seriesIndex].pieData.startRatio
                            endRatio = that.option.series[params.seriesIndex].pieData.endRatio
                            k = that.option.series[params.seriesIndex].pieStatus.k
                            // 对当前点击的扇形，执行高亮操作（对 option 更新）
                            that.option.series[params.seriesIndex].parametricEquation =
                                that.getParametricEquation(
                                    startRatio,
                                    endRatio,
                                    isSelected,
                                    isHovered,
                                    k,
                                    that.option.series[params.seriesIndex].pieData.value + 5
                                )
                            that.option.series[params.seriesIndex].pieStatus.hovered = isHovered
                            // 记录上次高亮的扇形对应的系列号 seriesIndex
                            hoveredIndex = params.seriesIndex
                        }
                        // 使用更新后的 option，渲染图表
                        myChart.setOption(that.option)
                    }
                })
                // 修正取消高亮失败的 bug
                myChart.on('globalout', function () {
                    // 准备重新渲染扇形所需的参数
                    let isSelected
                    let isHovered
                    let startRatio
                    let endRatio
                    let k
                    if (hoveredIndex !== '') {
                        // 从 option.series 中读取重新渲染扇形所需的参数，将是否高亮设置为 true。
                        isSelected = that.option.series[hoveredIndex].pieStatus.selected
                        isHovered = false
                        k = that.option.series[hoveredIndex].pieStatus.k
                        startRatio = that.option.series[hoveredIndex].pieData.startRatio
                        endRatio = that.option.series[hoveredIndex].pieData.endRatio
                        // 对当前点击的扇形，执行取消高亮操作（对 option 更新）
                        that.option.series[hoveredIndex].parametricEquation =
                            that.getParametricEquation(
                                startRatio,
                                endRatio,
                                isSelected,
                                isHovered,
                                k,
                                that.option.series[hoveredIndex].pieData.value
                            )
                        that.option.series[hoveredIndex].pieStatus.hovered = isHovered
                        // 将此前记录的上次选中的扇形对应的系列号 seriesIndex 清空
                        hoveredIndex = ''
                    }
                    // 使用更新后的 option，渲染图表
                    myChart.setOption(that.option)
                })
            },
        },
    }
</script>

<style lang="scss" scoped>
    .container {
        display: flex;
        margin-top: 30px;
        .left {
            width: 22%;
            // height: 500px;
            border: 1px solid #1161a4;
            border-radius: 10px;
            margin-right: 5px;
            background: linear-gradient(to right, #032c67, #021b49);
            .item {
                margin: 20px 10px 10px 10px;
                border: 1px solid transparent;
                border-radius: 10px;
                .title {
                    padding: 10px 0 10px 10px;
                    color: #e4ffff;
                    background: linear-gradient(to right, #00beef, #0089f8);
                    p {
                        font-size: 16px;
                    }
                }
                .detail {
                    background-color: #025690;
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    padding: 10px;
                    span {
                        font-size: 14px;
                        color: #f6fcfd;
                    }
                }
            }
        }
        .right {
            width: 78%;
            background-color: #082d69;
            border-radius: 5px;
            padding: 5px;
            .top {
                .data {
                    color: #b8c7d9;
                    .dataLeft {
                        display: flex;
                        align-items: center;
                    }
                }
                .chart {
                    display: flex;
                    // justify-content: space-around;
                    align-items: center;
                    height: 300px;
                    margin-bottom: 20px;
                }
            }
            .middle {
                margin: 5px 10px 5px 20px;
                display: flex;
                justify-content: space-between;
                align-items: center;
                border: 1px solid #0e4785;
                padding: 5px 10px;
                .middleLeft {
                    display: flex;
                    justify-content: center;
                    align-items: center;
                    color: #bbd6f1;
                    writing-mode: vertical-rl;
                    text-align: center;
                    margin-right: 20px;
                    padding: 10px 0;
                    background: linear-gradient(to right, #003580, #00245a);
                    width: 50px;
                }
                .middleRight {
                    font-size: 12px;
                    color: #88a2c6;
                    span:nth-child(2) {
                        color: red;
                    }
                }
            }
            .bottom {
                margin-top: 30px;
            }
        }
    }
    ::v-deep .el-table__row:nth-child(odd) {
        background-color: #012b68;
        color: #c2e3f6;
        font-size: 12px;
    }
    ::v-deep .el-table__row:nth-child(even) {
        background-color: #033270;
        color: #c2e3f6;
        font-size: 12px;
    }
    ::v-deep .el-table__header .el-table__cell {
        color: #c5e7fe;
        font-size: 12px;
        font-weight: normal;
    }
    ::v-deep .el-table::before,
    .el-table--group::after,
    .el-table--border::after {
        background-color: transparent;
    }
    ::v-deep .el-table_1_column_1 {
        padding-left: 30px;
    }
</style>
